// 自动生成模板Users
package users

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// Users 结构体
type Users struct {
	global.GVA_MODEL
	Name       string `json:"name" form:"name" gorm:"column:name;comment:name;"`
	Student_id string `json:"student_id" form:"student_id" gorm:"column:student_id;comment:student_id;"`
	Password   string `json:"password" form:"password" gorm:"column:password;comment:password;"`
}

type UsersLoginRequest struct {
	StudentId string `json:"student_id"`
	Password  string `json:"password"`
}

type UsersLoginResponse struct {
	UserId uint `json:"user_id"`
}

// TableName Users 表名
func (Users) TableName() string {
	return "users"
}
